package day01;

import java.io.File;

public class FileFilterDemo01 {
    public static void main(String[] args) {
        File file = new File("D:\\dev\\tool\\资料");
        File[] files = file.listFiles((f,name)-> name.endsWith(".docx"));

        for (File f:files) {
            System.out.println(f.getAbsolutePath());
        }
    }
}
